package model

import "go-mall/global"

// ShoppingCartItem 购物车表结构
type ShoppingCartItem struct {
	global.MODEL
	UserId     int `json:"userId" form:"userId" gorm:"column:user_id;comment:用户主键id;type bigint;"`
	GoodsId    int `json:"goodsId" form:"goodsId"gorm:"column:goods_id;comment:关联商品id;type bigint;"`
	GoodsCount int `json:"goodsCount" form:"goodsCount"gorm:"column:goods_count;comment:数量(最大为5);type bigint;"`
	IsDeleted  int `json:"isDeleted" form:"isDeleted"gorm:"column:is_deleted;comment:删除标识字段(0-未删除 1-已删除);type tinyint;"`
}
